<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript" src="js/jquery-1.3.1.js" ></script>
	</head>
	<body>
		<div id='id#b'>bb</div>
		<div id="id[1]">cc</div>
	</body>
	<script type="text/javascript">
		$(document).ready(function(){
			$('#id\\#b').click(function(){
				alert('行不');
			});
			$('#id\\[1\\]').click(function(){
				alert('可以');
			});
		})
	</script>
</html>
